<% if @cultural_heritage_periods.size > 0 %>

<h1>Listado de Periodos</h1>

<fieldset id="agrupacion" >
<legend>Busqueda </legend>
<% form_tag url_for(:action=>"update_table"),{:id =>"periods_form_search"} do -%>
  <p class="two-col"><label>Campo: </label><%= text_field_tag "search_name" %></p>  
  <input class="button" name="Buscar" value="Buscar" id="cultures_search"type="submit" /><span id="loading_search" style="display:none"></span>
<% end %>
</fieldset>

<br></br>

<div id = "periods_table">

  <%= render :partial=>"table"%>

</div>

<% else %>
  <p>Ningún Periodo Encontrado</p>
<% end %>
<br />
<% if (user_signed_in? && ([2].include?(current_user.role))) %>
<p><%= link_to 'Nuevo Periodo', new_cultural_heritage_period_path %></p>
<%end%>

